<?php
namespace app\index\validate;
use think\Validate;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-12-13
 * Time: 18:04
 */
class Wemail extends Validate
{
    protected $rule = [
        'u_email'          => 'require|email',
        'type'             => 'require'
    ];

    protected $message = [
        'u_email.email'             => '邮箱格式错误',
        'u_email.require'           => '请输入邮箱',
        'type.require'              => '请求发送邮箱验证码类型不能为空',
    ];
}